﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DomainModel;
using BL;

namespace SL
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together.
    public class SLTv: ISLTv
    {
        public Dictionary<int, string> GetDisplay(ref List<string> errors)
        {
            return BLTv.GetDisplay(ref errors);
        }
        /*public List<Display> GetDisplay(ref List<string> errors)
        {
            return BLTv.GetDisplay(ref errors);
        }*/
        public Dictionary<int, string> GetMake(ref List<string> errors)
        {
            return BLTv.GetMake(ref errors);
        }
        public Dictionary<int, int> GetRefresh(ref List<string> errors)
        {
            return BLTv.GetRefresh(ref errors);
        }
        public Dictionary<int, int> GetResolution(ref List<string> errors)
        {
            return BLTv.GetResolution(ref errors);
        }
        public Dictionary<int, int> GetSize(ref List<string> errors)
        {
            return BLTv.GetSize(ref errors);
        }

        public List<Product> SearchItem(int display, int make, int size, ref List<string> errors)
        {
            return BLTv.SearchItem(display, make, size, ref errors);
        }
        // For partial view functions
        public int numberOutOfStock(ref List<string> errors)
        {
            return BLTv.numberOutOfStock(ref errors);
        }
        public List<Product> GetTopFive(ref List<string> errors) 
        {
            return BLTv.GetTopFive(ref  errors);
        }
        public List<Product> GetOutStockDetail(ref List<string> errors)
        {
            return BLTv.GetOutStockDetail(ref errors);
        }

    }
}
